﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace MC34063_Universal_Calculator
{
    public class DiodeValue
    {
        string _name;
        double _Vf;
        bool _isDefault = false;

        public DiodeValue()
        {
        }

        public DiodeValue(string name, double Vf)
        {
            _name = name;
            _Vf = Vf;
        }

        [XmlAttributeAttribute]
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        [XmlAttributeAttribute]
        public double Vf
        {
            get
            {
                return _Vf;
            }
            set
            {
                _Vf = value;
            }
        }

        [XmlAttributeAttribute]
        public bool IsDefault
        {
            get
            {
                return _isDefault;
            }
            set
            {
                _isDefault = value;
            }
        }

        public override string ToString()
        {
            return _name;
        }
    }
}

//(c) 2011 - Tobias Eiseler

//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.

//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.

//You should have received a copy of the GNU General Public License
//along with this program.  If not, see <http://www.gnu.org/licenses/>